package com.le.tester.onjava8.l1_10_1;

/**
 * createTime：2022/10/27 9:59
 * description：生成mail。以及随机获取到mail
 */
public class Mail {
    enum GeneralDelivery {YES, NO1, NO2, NO3, NO4, NO5}

    enum ScanAbility {U, YES1, YES2, YES3, YES4}

    enum ReadAbility {I, YES1, YES2, YES3, YES4}

    enum Address {I, OK1, OK2, OK3, OK4}

    enum ReturnAddress {MISSING, OK1, OK2, OK3, OK4}

    GeneralDelivery generalDelivery;

    ScanAbility scanAbility;

    ReadAbility readAbility;

    Address address;

    ReturnAddress returnAddress;

    static long counter = 0;

    long id = counter++;

    @Override
    public String toString() {
        return "Mail{" +
                "generalDelivery=" + generalDelivery +
                ", scanAbility=" + scanAbility +
                ", readAbility=" + readAbility +
                ", address=" + address +
                ", returnAddress=" + returnAddress +
                ", id=" + id +
                '}';
    }
}
